﻿using System;
namespace ApiBetaSeries.Services
{
    public interface IShowServices
    {

        /// <summary>
        /// Get all the shows and theirs url
        /// </summary>
        /// <returns>couple <name, url><Title, url></returns>
        System.Collections.Generic.Dictionary<string, string> GetAllShows();
        /// <summary>
        /// Get a Show from its "url"
        /// </summary>
        /// <param name="url">Url of the show</param>
        /// <returns>The Show</returns>
        ApiBetaSeries.IShow GetShow(string url);
        /// <summary>
        /// Search a show by title name
        /// </summary>
        /// <param name="search">search expression</param>
        /// <returns>couple <name, url><Title, url></returns>
        System.Collections.Generic.Dictionary<string, string> SearchShow(string search);

        /// <summary>
        /// Recommend this show to a friend
        /// </summary>
        /// <param name="urlShow">url of the show</param>
        /// <param name="user">identified member</param>
        /// <param name="friend">friend's username</param>
        void RecommendShow(string urlShow, IUser user, string friend);
        /// <summary>
        /// Recommend this show to a friend
        /// </summary>
        /// <param name="urlShow">url of the show</param>
        /// <param name="token">token of an identified member</param>
        /// <param name="friend">friend's username</param>
        void RecommendShow(string urlShow, string token, string friend);
    }
}
